package com.bootdo.sell.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.sell.dao.NuDao;
import com.bootdo.sell.domain.NuDO;
import com.bootdo.sell.service.NuService;



@Service
public class NuServiceImpl implements NuService {
	@Autowired
	private NuDao nuDao;
	
	@Override
	public NuDO get(Integer nid){
		return nuDao.get(nid);
	}
	
	@Override
	public List<NuDO> list(Map<String, Object> map){
		return nuDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return nuDao.count(map);
	}
	
	@Override
	public int save(NuDO nu){
		return nuDao.save(nu);
	}
	
	@Override
	public int update(NuDO nu){
		return nuDao.update(nu);
	}
	
	@Override
	public int remove(Integer nid){
		return nuDao.remove(nid);
	}
	
	@Override
	public int batchRemove(Integer[] nids){
		return nuDao.batchRemove(nids);
	}
	
}
